package org.dallasrowing.logbook.ui.view;

import java.util.List;

public interface BeanEditorWidget<T> {

	void fillBeans(List<T> list);

	int getSelectedBean();

	void onBeanSelected(Runnable run);

	void onCloseClicked(Runnable with);

	void onUpdateClicked(Runnable with);

	void onCreateNewClicked(Runnable with);

	void enableNew();
	
	void enableUpdate();
	
	void updateBean(T bean);

	void setBean(T bean);

}
